<%-- 
    Document   : action
    Created on : 19-oct-2011, 22:48:06
    Author     : Santiago
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Resultados</title>
    </head>
    <body>

        
        
        <%  
        int datoX = Integer.parseInt(request.getParameter("datoX"));
        int datoY = Integer.parseInt(request.getParameter("datoY"));

        %>

        
        <jsp:useBean id="bean1" scope="session" class="Logica2.Principal" /><br>
        
        
        <jsp:setProperty name="bean1" property="datoX" value="<%=datoX%>" /><br>
        
        <jsp:setProperty name="bean1" property="datoY" value="<%= datoY %>" /><br>
        
        <table border="2">
            <thead>
                <tr>
                    <th>Estadistica</th>
                    <th>Resultado</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>Dato Recibido en X: </td>
                    <td><%= datoX%></td>
                </tr>
                <tr>
                    <td>Dato Recibido en Y: </td>
                    <td><%= datoY%></td>
                </tr>
                <tr>
                    <td>Maximo: </td>
                    <td><jsp:getProperty name="bean1" property="mayor" /></td>
                </tr>
                <tr>
                    <td>Promedio: </td>
                    <td><jsp:getProperty name="bean1" property="promedio" /></td>
                </tr>
                <tr>
                    <td>Suma: </td>
                    <td><jsp:getProperty name="bean1" property="suma" /></td>
                </tr>
            </tbody>
        </table>
    </body>
    <h3>Santiago Noriega Ardila</h3>
    <h3>Codigo> 200911744</h3>
</html>
